package com.ayic.garbagerecycle.service;

import com.ayic.garbagerecycle.pojo.Result;
import com.ayic.garbagerecycle.pojo.WasteRecord;

import java.util.List;
import java.util.Map;

public interface UserService {
    Integer getUserIdByUsername(String username);

    Result getUserInfo(String username);
    Result updatePassword(String username, String newPassword);
    Result updateEmail(String username, String newEmail);
    /**
     * 获取用户投放垃圾种类统计
     * @param userId 用户ID
     * @return Map<垃圾种类ID, 投放次数>
     */
    Map<String, Integer> getUserRecInfo(int userId);
    Result getUserWasteRec(int userId);
}